from bs4 import BeautifulSoup

soup = BeautifulSoup(open("../素材/三国演义.html",'r', encoding="utf-8"), "lxml")


text = soup.select('.right-book-card a')

# 获取文字数组
lst = []
lstHref = []
for item in text:
    lst.append(item.get_text())
    lstHref.append(item.get('href'))
print(lst)
print(lstHref)